
alter procedure APPOWNER.ADD_CLIENT compile;
execute DBMS_SHARED_POOL.KEEP('APPOWNER.ADD_CLIENT','P');

select Owner,
       Name,
       Type,
 Source_Size+Code_Size+Parsed_Size+Error_Size  Total_Bytes
  from DBA_OBJECT_SIZE
 where Type in ('PACKAGE BODY','PROCEDURE')
 order by 4 desc;

imp system/manager file=export.dmp rows=N
imp system/manager file=export.dmp full=y buffer=64000 
commit=Y ignore=Y

create tablespace TEMP_GL
datafile '/db01/oracle/FIN/temp_gl.dbf' size 100m
default storage
(initial 5m next 5m pctincrease 0);

alter user GL temporary tablespace TEMP_GL;

select
   Extents,  /*ile obszarw ma segment?*/
   Bytes,    /*jak duy jest segment tymczasowy, w bajtach? */
   Blocks    /*jak duy on jest, w blokach Oracle? */
 from DBA_SEGMENTS
where Segment_Type = 'TEMPORARY'
  and Tablespace_Name = 'TEMP_GL';


svrmgrl
connect internal;
grant select on V$PROCESS to applsys with grant option;
grant select on V$SESSION to applsys with grant option;
grant select on V$PROCESS to public;
grant select on V$SESSION to public;

create table EXTRACT_TABLE
as select * from REP_TABLE;

select Name
  from PROSPECT
 where Name like 'B%'
   and contains (Resume, 'digging') > 0;

ctxsrv -user ctxsys/ctxsys_pass -personality DMS

column Ser_Name format A32

select Ser_Name,
       Ser_Status,
       Set_Started_At
from CTX_ALL_SERVERS;


execute CTX_ADM.SHUTDOWN;
execute CTX_ADM.SHUTDOWN('DRSRV_42736');

create index Resume_Index on PROSPECT (Resume)
indextype is context
paramaters ('stoplist MY_STOP');

alter index Resume_Index rebuild;

alter index Resume_Index rebuild parameters('opmitize fast');

drop index Resume_Index;

select Owner,         /*Waciciel indeksu*/
       Index_Name,    /*Nazwa indeksu*/
       Status         /*Albo DIRECT PATH albo VALID*/
  from DBA_INDEXES;



